﻿(function () {
    var root = this;

    requirejs.config(
            {
                baseUrl: '/scripts/app',
            }
        );

    defineLibraries();
    runApp();


    function defineLibraries() {
        define('jquery', [], function () { return root.jQuery; });
        define('ko', [], function () { return root.ko; });
        define('amplify', [], function () { return root.amplify; });
    }

    function runApp() {
        require(['appBootStrap','dataprimer'],
            function (appBootStrap, dataprimer) {
                appBootStrap.run();
            });
    }

})();